﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DangNhap.ascx.cs" Inherits="TMDT_Nhom1A.UserControl.DangNhap" %>
<div id="toolbox">
    <asp:Panel runat="server" ID="loginPanel" CssClass="contentmenu">
        <asp:Login ID="Login" MembershipProvider="MyMembershipProvider" runat="server"
            OnAuthenticate="Login_Authenticate">
            <LayoutTemplate>
                <div>
                    <div style="float: left; position: absolute; width: 65px">
                        <asp:Label CssClass="field-label" ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Tài khoản</asp:Label>
                    </div>
                    <div style="margin-left: 85px;">
                        <asp:TextBox ID="UserName" CssClass="field-input" runat="server"></asp:TextBox>
                    </div>
                </div>
                <div style="clear: both">
                    <div style="float: left; position: absolute; width: 65px">
                    </div>
                    <div style="margin-left: 85px;">
                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                            ErrorMessage="Yêu cầu nhập tài khoản" ToolTip="Yêu cầu nhập tài khoản" ValidationGroup="ctl00$Login1">*</asp:RequiredFieldValidator>
                    </div>
                </div>
                <div style="clear: both">
                    <div style="float: left; position: absolute; width: 65px">
                        <asp:Label CssClass="field-label" ID="PasswordLabel" runat="server" AssociatedControlID="Password">Mật khẩu</asp:Label>
                    </div>
                    <div style="margin-left: 85px;">
                        <asp:TextBox ID="Password" CssClass="field-input" runat="server" TextMode="Password"></asp:TextBox>
                    </div>
                </div>
                <div style="clear: both">
                    <div style="float: left; position: absolute; width: 65px">
                    </div>
                    <div style="margin-left: 85px;">
                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                            ErrorMessage="Yêu cầu nhập pass" ToolTip="Yêu cầu nhập pass" ValidationGroup="ctl00$Login1">*</asp:RequiredFieldValidator>
                    </div>
                </div>
                <div style="clear: both">
                    <div style="float: left; position: absolute; width: 65px">
                    </div>
                    <div style="margin-left: 85px;">
                        <asp:CheckBox ID="RememberMe" runat="server" Text="Nhớ mật khẩu" />
                    </div>
                </div>
                <div style="clear: both">
                    <div style="float: left; position: absolute; width: 65px">
                    </div>
                    <div style="margin-left: 75px; color: #FF0000;">
                        <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Đăng nhập"
                            ValidationGroup="ctl00$Login1" /><asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                    </div>
                </div>
            </LayoutTemplate>
        </asp:Login>
    </asp:Panel>
    <asp:Panel Visible="false" runat="server" ID="logoutPanel" CssClass="contentmenu">
        <ul>
            <li>
                <label class="field-label">
                    Tài khoản</label>
                <asp:Label ID="lbtaikhoan" runat="server" Text="Label" Style="color: Black; font-weight: bolder"></asp:Label>
            </li>
            <li>
                <label class="field-label">
                    Vai trò</label>
                <asp:Label ID="lbvaitro" runat="server" Text="Label" Style="color: Black; font-weight: bolder"></asp:Label>
            </li>
            <li>
                <center>
                    <asp:LoginStatus ID="LoginStatus1" runat="server" LoginText="Đăng nhập" LogoutText="Đăng xuất"
                        OnLoggingOut="LoginStatus1_LoggingOut" />
                </center>
            </li>
        </ul>
    </asp:Panel>
    <div class="logon">
        <asp:HyperLink ID="triggerButton" runat="server" NavigateUrl="#" Font-Size="14px">Đăng nhập</asp:HyperLink></div>
</div>
